<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><spring:message code="admin.login.title"/></title>
<%@ include file="inc/css.inc" %>
<%@ include file="inc/js.inc" %>
</head>
<body id="login">
<div id="login-wrapper">
  <div id="login-top">
    <h1><spring:message code="admin.login.title"/></h1>
    <!-- Logo (221px width) -->
    <a href="#"><img id="logo" src="http://www.baijob.com/images/baijob_logo-215_55.png" alt="logo" /></a> </div>
  <!-- End #logn-top -->
  <div id="login-content">
    <form id="frmLogin" name="frmLogin" action="/security/alogin" method="post">
      <div class="notification information png_bg">
        <div> <spring:message code="admin.login.notification"/> </div>
      </div>
      <c:if test="${rtn != null && rtn.code < 0}">
	      <div class="notification error png_bg">
	        <div> <spring:message code="admin.login.error.password"/> </div>
	      </div>
      </c:if>
      <p>
        <label><spring:message code="admin.login.label.username"/></label>
        <input id="username" name="username" value="${vo.username}" class="text-input" type="text" />
        <span class="input-notification error png_bg">${fieldErrors.username}</span>
      </p>
      <div class="clear"></div>
      <p>
        <label><spring:message code="admin.login.label.password"/></label>
        <input id="password" name="password" class="text-input" type="password" />
        <span class="input-notification error png_bg">${fieldErrors.password}</span>
      </p>
      <div class="clear"></div>
      <p id="remember-password">
        <input id="rememberMe" name="rememberMe" type="checkbox" checked/>
        <spring:message code="admin.login.label.rememberMe"/> </p>
      <div class="clear"></div>
      <p id="buttons">
      	<input id="reset" value="<spring:message code="admin.login.reset"/>" class="button" type="reset"  />
        <input id="submit" value="<spring:message code="admin.login.submit"/>" class="button" type="submit"  />
      </p>
    </form>
  </div>
</div>
</body>
</html>
